package com.ant.storage.mapper;

import com.ant.storage.dto.ReimbursementProjectDto;
import com.ant.storage.dto.SubscribeDto;
import com.ant.storage.pojo.Subscribe;
import com.ant.storage.vo.AmountVo;
import com.ant.storage.vo.PurchaseVo;
import com.ant.storage.vo.SingleVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author melon
 * @since 2022-03-16
 */
public interface SubscribeMapper extends BaseMapper<Subscribe> {

    String selectLastID();

    Subscribe getPurchaseOrderById(@Param("id") Integer id);

    List<PurchaseVo> getPurchaseVoList(@Param("id") Integer id,@Param("purchaserId")Integer purchaserId);

    List<AmountVo> price();

    List<AmountVo> consumePrice();

    List<Integer> selectListByIds(SubscribeDto dto);

    Integer selectListByIdsCount(SubscribeDto dto);

    List<ReimbursementProjectDto> getids(@Param("ids") List<Integer> ids);

    List<Integer> selectListCarByIds(SubscribeDto dto);

    Integer selectListByIdsCarCount(SubscribeDto dto);

    List<SingleVo> selectBatchById(@Param("arrayList") ArrayList<Integer> arrayList);

    List<SingleVo> selectBatchByIds(@Param("supplierId")Integer supplierId,@Param("arrayList") ArrayList<Integer> arrayList);

    List<ReimbursementProjectDto> getRecordOrdersIds(@Param("ids")  List<Integer> ids);
}
